package com.corechina.apex_osswords.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 来访日志
 * </p>
 *
 * @author cc
 * @since 2022-05-30
 */
@Getter
@Setter
@TableName("core_visiting_records")
@ApiModel(value = "CoreVisitingRecordsVo对象", description = "来访日志")
public class CoreVisitingRecordsVo implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("地点名称")
    private String placeName;

    @ApiModelProperty("地点位置")
    private String location;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty("来访时间")
    private LocalDateTime visitingTime;

    @ApiModelProperty("来访事宜")
    private String visitingMatters;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty("离开时间")
    private LocalDateTime departureTime;

    @ApiModelProperty("来访者姓名")
    private String visitorName;

    @ApiModelProperty("来访者单位")
    private String company;

    @ApiModelProperty("来访者身份证号")
    private String cardNo;

    @ApiModelProperty("来访者电话")
    private String tel;

}
